import { IRoute } from "umi";

export const routes: IRoute[] = [
    {
        path: '/',
        redirect: '/login',

    },
    {
        path: '/login',
        title: '登录',
        component: '@/pages/Login'
    },
    {
        path: '/',
        title: '生产企业管理系统',
        component: '@/pages/Layout',
        routes: [
            {
                path: '/home',
                title: '主页',
                component: '@/pages/Home'
            },
            {
                path: '/roleManage',
                title: '角色管理',
                component: '@/pages/RoleManage'
            },
            {
                path: '/permissions',
                title: '权限管理',
                component: '@/pages/Permissions'
            },
            {
                path: '/userManage',
                title: '用户管理',
                component: '@/pages/UserManage'
            },
            {
                path: '/financeManage',
                title: '财务管理',
                component: '@/pages/FinanceManage'
            },
            {
                path: '/dataStatistics',
                title: '数据统计',
                component: '@/pages/DataStatistics'
            },
            {
                path: '/buyManage',
                title: '采购管理',
                component: '@/pages/BuyManage'
            },
            {
                path: '/produceManage',
                title: '生产管理',
                component: '@/pages/ProduceManage'
            },
            {
                path: '/orderManage',
                title: '订单管理',
                component: '@/pages/OrderManage'
            },
            {
                path: '/warehouseManage',
                title: '仓库管理',
                component: '@/pages/WareHouseManage'
            },
            {
                path: '/processInbound',
                title: '入库请求',
                component: '@/pages/ProcessInbound'
            },
            {
                path: '/processOutbound',
                title: '出库请求',
                component: '@/pages/ProcessOutbound'
            },
            {
                path: '/customerManage',
                title: '客户管理',
                component: '@/pages/CustomerManage'
            },
            {
                path: '/financeManage',
                title: '客户管理',
                component: '@/pages/FinanceManage'
            }
        ]
    }
]